import request from "@/utils/request"; 

// 获得轮播图
export const getBannerImg = ( params = {} ) => {
  // 1为默认，2为商品
  const { distributionSite = '1' } = params
  return request.get('home/banner', {
    params: {
      distributionSite
    }
  })
}

// 新鲜好物
export const getNewGoods = () => {
  return request.get('/home/new')
}

// 产品
export const getGoods = () => {
  return request.get('/home/goods')
}